﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucAgenda.ascx.cs" Inherits="wRegPadron.frmOpciones.ucAgenda" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:UpdatePanel runat="server" ID="upAgendaMunicipal">
    <ContentTemplate>
        <table width="100%">
            <tr>
                <td class="tdSubTituloVentana" colspan="2" valign="top" align="left" style="padding-left: 10px;">
                    <fieldset>
                        <legend>
                            <h3>
                                <asp:Label runat="server" ID="lblTitulo"></asp:Label>
                                <p>
                                    <small>
                                        <asp:Label runat="server" ID="lblDescripcion"></asp:Label></small></p>
                            </h3>
                        </legend>
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td width="100%" align="center">
                    <table width="95%">
                        <tr>
                            <td align="center">
                                <div class="dropdown clearfix">
                                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block;
                                        position: static; margin-bottom: 5px; width: 600px;">
                                        <table width="350">
                                            <tr>
                                                <td align="left" class="text-info">
                                                    Dependencia:
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox runat="server" ID="txtDependencia"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <asp:Button runat="server" ID="btnAceptar" CssClass="btn" Text="Guardar" OnClick="btnAceptar_Click" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <asp:GridView runat="server" ID="gvDependencias" AutoGenerateColumns="false" OnRowCommand="gvDependencias_RowCommand"
                                                        Width="200" OnSelectedIndexChanged="gvDependencias_SelectedIndexChanged">
                                                        <SelectedRowStyle CssClass="bselectedrow" />
                                                        <PagerStyle CssClass="bpagerstyle" HorizontalAlign="Left" />
                                                        <HeaderStyle Font-Size="Small" Font-Underline="true" Font-Bold="true" CssClass="bgrid" />
                                                        <Columns>
                                                            <asp:BoundField DataField="DEPARE_P_inID" HeaderText="idGrupo" ReadOnly="True">
                                                                <ControlStyle Width="0px" CssClass="hid" />
                                                                <FooterStyle CssClass="hid" Width="0px" />
                                                                <HeaderStyle CssClass="hid" Width="0px" />
                                                                <ItemStyle CssClass="hid" Width="0px" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="DEPARE_chNOMDEP" HeaderText="Dependencia" />
                                                            <asp:ButtonField ButtonType="Image" ImageUrl="../Imagenes/Ver.png" CommandName="Seleccionar"
                                                                ControlStyle-CssClass="tdBotonImage" />
                                                            <asp:ButtonField ButtonType="Image" ImageUrl="../Imagenes/eliminar.png" CommandName="Eliminar"
                                                                ControlStyle-CssClass="tdBotonImage" />
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <asp:Label runat="server" ID="lblErrorDependencia" CssClass="text-error"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Panel runat="server" ID="pPanelResponsables">
                                <div class="dropdown clearfix">
                            <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block;
                                position: static; margin-bottom: 5px; width: 650px;">
                                    <asp:Label runat="server" ID="lblSeleccion" CssClass="text-info"></asp:Label><br />
                                    <asp:GridView runat="server" ID="gvResponsables" AutoGenerateColumns="false" Width="500"
                                        CssClass="bgrid">
                                        <SelectedRowStyle CssClass="bselectedrow" />
                                        <PagerStyle CssClass="bpagerstyle" HorizontalAlign="Left" />
                                        <HeaderStyle Font-Size="Small" Font-Underline="true" Font-Bold="true" />
                                        <AlternatingRowStyle CssClass="baltrow" />
                                        <Columns>
                                            <asp:BoundField DataField="RESDEP_P_inID" HeaderText="" ReadOnly="True">
                                                <ControlStyle Width="0px" CssClass="hid" />
                                                <FooterStyle CssClass="hid" Width="0px" />
                                                <HeaderStyle CssClass="hid" Width="0px" />
                                                <ItemStyle CssClass="hid" Width="0px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="NombrePer" HeaderText="Responsable" />
                                            <asp:BoundField DataField="RESDEP_chANERES" HeaderText="Anexo" />
                                            <asp:BoundField DataField="RESDEP_chDIRRES" HeaderText="Directo" />
                                            <asp:BoundField DataField="RESDEP_chRPCRES" HeaderText="RPC" />
                                        </Columns>
                                    </asp:GridView>
                                    <br />
                                    <table width="50%">
                                        <tr>
                                            <td align="left" class="text-info">
                                                Responsable:
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList runat="server" ID="ddlResponsable" CssClass="tdCampoValorInput"
                                                    Width="250">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="text-info">
                                                Anexo:
                                            </td>
                                            <td align="left">
                                                <asp:TextBox runat="server" ID="txtAnexo" CssClass="tdCampoValorInput"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="text-info">
                                                Directo:
                                            </td>
                                            <td align="left">
                                                <asp:TextBox runat="server" ID="txtDirecto" CssClass="tdCampoValorInput"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="text-info">
                                                RPC:
                                            </td>
                                            <td align="left">
                                                <asp:TextBox runat="server" ID="txtRPC" CssClass="tdCampoValorInput"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:Button runat="server" CssClass="btn" Text="Guardar" ID="btnGuardar" OnClick="btnGuardar_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:Label runat="server" ID="lblErrorRegistro" CssClass="text-error"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                    </ul></div>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
